﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Devdream.Models
{
    /// <summary>
    /// 文章
    /// </summary>
    public class Article
    {
        [Key]
        public int ArticleID { get; set; }
        public string Author { get; set; }
        public string Content { get; set; }
        public string Intro { get; set; }
        public int ModelID { get; set; }
        public string Source { get; set; }
    }
    /// <summary>
    /// 分类
    /// </summary>
    public class Category
    {
        public int CategoryID { get; set; }
        public string CategoryView { get; set; }
        public string ContentOrder { get; set; }
        public string ContentView { get; set; }
        public string Description { get; set; }
        public string LinkUrl { get; set; }
        public string MetaDescription { get; set; }
        public string MetaKeywords { get; set; }
        public string Model { get; set; }
        public string Name { get; set; }
        public string Order { get; set; }
        public int PageSize { get; set; }
        public int ParentId { get; set; }
        public string ParentPath { get; set; }
        public string RecordName { get; set; }
        public string RecordUnit { get; set; }
        public string Type { get; set; }

    }
    /// <summary>
    /// 一般
    /// </summary>
    public class CommonModel
    {
        public int CategoryID { get; set; }
        public string DefaultPicUrl { get; set; }
        public string Hits { get; set; }
        public string Inputer { get; set; }
        public string Model { get; set; }
        public int ModelID { get; set; }
        public DateTime ReleaseData { get; set; }
        public bool Status { get; set; }
        public string StatusList { get; set; }
        public string Title { get; set; }
    }
    /// <summary>
    /// 附件
    /// </summary>
    public class Attachment
    {
        public int AttachmentID { get; set; }
        public string Extension { get; set; }
        public string FilePath { get; set; }
        public int ModelID { get; set; }
        public string Owner { get; set; }
        public string Type { get; set; }
        public DateTime UploadDate { get; set; }
    }

}
